<template>
  <div class="contanierBox">
    <div class="top">
      <p>{{ comTitle }}</p>
      <div :style="{ color: stylefont1.color }">{{ countNum }}</div>
    </div>
    <!-- <div class="pCount">
      <div class="man">
        <img src="../assets/images/peovehicle/man.png" alt="" />
        <p>{{mancountNum}}</p>
      </div>
      <div class="woman">
        <img src="../assets/images/peovehicle/woman.png" alt="" />
        <p>{{womancountNum}}</p>
      </div>
    </div> -->
  </div>
</template>

<script>
export default {
  name: "blueBox",
  // 定义属性
  props: {
    title: String,
    stylefont: {
      type: Object,
    },
    count: Number,
    manCount:Number,
    womanCount:Number,
  },
  data() {
    return {};
  },
  computed: {
    comTitle() {
      return this.title;
    },
    stylefont1() {
      return this.stylefont;
    },
    countNum() {
      return this.count;
    },
    mancountNum() {
      return this.manCount;
    },
    womancountNum() {
      return this.womanCount;
    },
  },
};
</script>
<style lang="less" scoped>
.contanierBox {
  height: 5.5vh;
}
.top {
  width: 5vw;
  height: 2.3vh; /* 设置的div框的宽高*/
  background: url("../assets/images/peovehicle/peobk.png") no-repeat;
  /* 以父元素的百分比来设置背景图像的宽度和高度。*/
  background-size: 100% 100%;
}
.top > p {
  color: white;
  font-size: 0.65vw;
  text-align: center;
  // padding: 0.34vw 0 0 0;
}
.top > div {
  text-align: center;
  font-weight: bold;
  font-size: 0.8vw;
  padding: 0.19vw 0 0 0;
}
.pCount {
  padding: 0.49vw 0 0 0;
  display: flex;
  justify-content: space-around;
  color: white;
  font-size: 0.42vw;
}
.man,
.woman {
  display: flex;
  justify-content: space-around;
  width: 1.69vw;
  height: 0.68vw;
}
.man img,
.woman img {
  width: 0.36vw;
  height: 0.68vw;
  object-fit: cover;
}
.man p,
.woman p {
  font-size: 0.8vw;
  padding: 0 0 0 0.31vw;
}
</style>
